From e3cc5f93ca77e2b81435a47d76dd8d4cb7524ba2 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 16 Sep 2009 09:26:04 +0100 Subject: [PATCH] Remove "buffer half full" check from guest_console_write Checks are made at a lower level in the serial code, and teh policy there is to drop rather than wait. So boot makes progress even when serial hardware is problematic. Signed-off-by: Chris Lalancette --- xen/drivers/char/console.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index a12a6caf71..dd615b6732 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -332,13 +332,6 @@ static long guest_console_write(XEN_GUEST_HANDLE(char) buffer, int count) while ( count > 0 ) { - while ( serial_tx_space(sercon_handle) < (serial_txbufsz / 2) ) - { - if ( hypercall_preempt_check() ) - break; - cpu_relax(); - } - if ( hypercall_preempt_check() ) return hypercall_create_continuation( __HYPERVISOR_console_io, "iih", -- 2.30.2